package com.yang.project;


import com.yang.project.base.optional.Person;
import org.junit.Test;

import java.sql.SQLOutput;
import java.util.Collection;
import java.util.Collections;

public class Base {

    @Test
    public void test01() {
        String i = "4";
        switch (i) {
            case "1":
                System.out.println("111"); break;
            case "2":
                System.out.println("222"); break;
            case "3":
                System.out.println("333"); break;
            case "4":
                System.out.println("444"); break;
            default:
                System.out.println("555");
        }
    }

    @Test
    public void test02() {
        System.out.println(2 << 3);
    }

    @Test
    public void test03() {
        final Person p = new Person("张三", 11);
        System.out.println(p);
        p.setName("李四");
        p.setAge(22);
        System.out.println(p);
    }

    @Test
    public void test04() {

    }
}
